package com.light.common.utils;

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.WordUtils;

/**
 * @Tittle SuperStringUtils
 * @Description
 * @Author yhr
 * @Date 2019/4/3 13:44
 * @Version 1.0
 */
public class SuperStringUtils extends org.apache.commons.lang.StringUtils {

    /**
     * 列名转换成Java属性名
     */
    public static String humpNaming(String name) {
        return WordUtils.capitalizeFully(name, new char[] { '_' }).replace("_", "");
    }

    public static void main(String[] args) {
        String str = "hello_world";
        System.out.println(SuperStringUtils.humpNaming(str));
    }
}
